package com.xdap.common.consts;

/**
 * @author v_lishushu
 * @time 2022/11/8 5:56 下午
 * @desc 常用的参数
 */
public class ComConst {
    public static final String FORM_ID = "formId";
    public static final String DOCUMENT_ID = "documentId";

    public static final String PROCESS_ID = "processId";

    public static final String TASK_ID = "taskId";

    public static final String USER_ID = "userId";
    public static final String CLIENT_ID = "client_id";
    public static final String CLIENT_SECRET = "client_secret";

    public static final String ROW_ID = "rowId";

    public static final String TIMESTAMP = "timestamp";
    public static final String XDAPTIMESTAMP = "xdaptimestamp";
    public static final String XDAPTOKEN = "xdaptoken";

    public static final String TOKEN = "token";
    public static final String OK = "ok";

    public static final String ACCESS_TOKEN = "access_token";
    public static final String GRANT_TYPE = "grant_type";
    public static final String XDAPTENANTID = "xdaptenantid";
    public static final String XDAPAPPID = "xdapappid";

    public static final String APP_ID = "appId";
    public static final String SUBMIT = "SUBMIT";

    public static final String REASSIGN = "REASSIGN";
    public static final String APPROVE = "APPROVE";
    public static final String REJECT = "REJECT";
    public static final String RESTART = "RESTART";

    public static final String ADDONE = "ADDONE";

    public static final String REASSIGN_USERS = "reassignUsers";

    public static final String OVERRULE = "overrule";
    public static final String SAVE = "SAVE";
    public static final String TEMP_SAVE = "TEMP_SAVE";
    public static final String BUTTON_CODE = "buttonCode";
    //撤回
    public static final String WITHDRAW = "WITHDRAW";
    //终止
    public static final String NORMAL_TERMINATE = "NORMAL_TERMINATE";

    public static final String BUTTON_NAME = "buttonName";
    public static final String AUTHORIZATION = "Authorization";
    public static final String BEARER = "Bearer ";
    public static final String DATA = "data";
    public static final String TABLE_DATA = "tableData";
    public static final String COMMENT = "comment";
    public static final String TABLE_UUID = "tableUuid";
    public static final String NODE_ID = "nodeId";
    public static final String INSTANCE_ID = "instanceId";

    public static final String REASSIGN_USER = "reassignUser";

    public static final String APP_BACKEND_URL = "appBackendUrl";

    public static final String ADD_FLAG = "addFlag";

    public static final String TEMP_FLAG = "tempFlag";

    public static final String FORM_DATA_STATUS = "_formDataStatus";

    public static final String TARGET_NODE_ID = "targetNodeId";

    public static final String OPERATION_TYPE = "operationType";

    public static final String ENABLE = "ENABLE";
    public static final String ERROR = "error";

    public static final String SHARE = "share";

    public static final String OVERRULE_UPPER = "OVERRULE";
    /**
     * redis中用户的过期时间(一周)
     */
    public static final Integer USER_INFO_EXPIRE = 7 * 24 * 60 * 60;

    /**
     * redis新增用户信息的加锁时间(2个小时)
     */
    public static final Integer USER_INFO_LOCK_TIME = 3 * 60 * 60;

    /**
     * redis中用户key结构
     */
    public static final String PREFIX_USER_INFO = "appGo:userInfo:";

    /**
     * redis中部门key结构
     */
    public static final String PREFIX_DEPT_INFO = "appGo:deptInfo:";

    /**
     * appGo用户信息key
     */
    public static final String APPGO_USERINFO_KEY = "appGoUserInfoKey";
    public static final String WORK = "WORK";

    public static final String YES = "[\"yes\"]";
    public static final String NO = "[\"no\"]";


}
